package com.itlong.cloud.property.dao;

import com.itlong.cloud.POJO.PO.ProjectPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <desc>
 *      支付密码数据访问接口
 * </desc>
 *
 * @createDate 2018/09/25
 */
@Repository
@Mapper
public interface IPropertyPayPasswordDao {

    /**
     * <desc>
     *      更新项目下的支付密码
     * </desc>
     *
     * @param projectId
     * @param password
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    Integer updatePayPassword(@Param("projectId") String projectId,@Param("password") String password);

    /**
     * <desc>
     *      获取项目的支付密码
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    ProjectPO getProjectInfo(@Param("projectId") String projectId);

    /**
     * <desc>
     *      验证银行卡信息
     * </desc>
     *
     * @param userName
     * @param bankCardNo
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    Integer checkBankInfo(@Param("projectId") String projectId,
                          @Param("userName") String userName,
                          @Param("bankCardNo") String bankCardNo);
}
